package lesson7;

public class MethodExamples2 {

		public static void main(String[] args) 
		{
			double far = 100;
			double celsius = farToCelsius(far);
			System.out.println(farToCelsius(far));
			
			double celsiusSquared = farToCelsius(far)*farToCelsius(far);
			
		}
		
		
		public static double farToCelsius(double far)
		{
			double c = (far-32)*5d/9d;
			//30 lines of code
			if(c == 0)
				return 3d;
			else
			if(c == 2)	
				return 3d;
			else
				return 4d;
			
		}
}
